<template>
  <div class="container">
    <!--头部-->
    <el-header>
      <h1 class="title">数据可视化-ECharts</h1>
      <div class="showTime">Time</div>
    </el-header>

    <div>
      <el-row :gutter="10">
        <el-col :span="7">

          <el-card class="box-card">
            <div slot="header" class="clearfix">
              <span>卡片名称</span>
              <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
            </div>
            <div v-for="o in 4" :key="o" class="text item">
              {{ '列表内容 ' + o }}
            </div>
          </el-card>
          <el-card class="box-card">
            <div slot="header" class="clearfix">
              <span>卡片名称</span>
              <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
            </div>
            <div v-for="o in 4" :key="o" class="text item">
              {{ '列表内容 ' + o }}
            </div>
          </el-card>
          <el-card class="box-card">
            <div slot="header" class="clearfix">
              <span>卡片名称</span>
              <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
            </div>
            <div v-for="o in 4" :key="o" class="text item">
              {{ '列表内容 ' + o }}
            </div>
          </el-card>

        </el-col>
        <el-col :span="10">2</el-col>
        <el-col :span="7">3</el-col>
      </el-row>
    </div>
    <el-button type="primary" @click="getData">获取数据</el-button>
  </div>
</template>

<script>

export default {
  name: 'ECharts2',
  methods: {
    getData() {
      this.$http.get('seller').then(response => {
        console.log(response)
      }).catch(error => {
        console.log(error)
      })
    }
  }
}
</script>

<style lang="less" scoped>
.container {
  background: url(~@/assets/echartsImages/bg.jpg) no-repeat center;
  background-size: cover;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

.el-col {
  border: 1px skyblue;
  border-radius: 10px;
  height: 100%;
  margin-left: 5px;

  .text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }

  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 480px;
  }
}

.el-header {
  position: relative;
  height: 80px;
  background: url(~@/assets/echartsImages/head_bg.png) no-repeat center;
  background-size: 100% 100%;

  h1 {
    font-size: 30px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    padding: 5px 0px 5px 0px;

  }
}

</style>
